/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package src.parseInfo;

/**
 *
 * @author LeMinh
 */
public class TGDDParseInfor implements WebParseInfor {

    @Override
    public String getWebPage() {
        return "http://www.thegioididong.com";
    }

    @Override
    public String getParsePage() {
       return "http://www.thegioididong.com";
    }

    @Override
    public String getMenuLinksXpath() {
        return "//*[@id='site-body']/section[1]/div[1]/ul/li/a";
    }

    @Override
    public String getPagingLinksXpath() {
       return "";
    }

    @Override
    public String getProductsXpath() {
         return ".//*[@id='catlistproduct']/ul/li";
    }

    @Override
    public String getLinkXpath() {
        return "./a[1]/@href";
    }

    @Override
    public String getImgXpath() {
        return "./a[1]/div[1]/img/@src";
    }

    @Override
    public String getNameXpath() {
        return "./a[1]/div[2]/h3/text()";
    }

    @Override
    public String getPriceXpath() {
       return "./a[1]/div[2]/div/cite/text()";
    }

}
